package com.xiaofu.service;

import com.xiaofu.request.AddressAddRequest;
import com.xiaofu.vo.AddressVO;

import java.util.List;

public interface AddressService {

    /**
     * 查看地址详情
     * @param id
     * @return
     */
    AddressVO detail(Long id);

    /**
     * 新增收货地址
     * @param request
     * @return
     */
    int add(AddressAddRequest request);

    /**
     * 根据地址id删除地址
     * @param addressId
     * @return
     */
    int del(int addressId);

    /**
     * 查询用户的全部收货地址
     * @return
     */
    List<AddressVO> listUserAllAddresses();

}
